<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 161 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */

 /* Position Styles */
 .ts161p0{position:absolute;left:106px;top:97px;}
 .ts161p1{position:absolute;left:352px;top:97px;}
 .ts161p3{position:absolute;left:665px;top:97px;}
 .ts161p7{position:absolute;left:106px;top:113px;}
 .ts161p8{position:absolute;left:706px;top:1026px;}
 .ts161p9{position:absolute;left:331px;top:1044px;}
 .ts161p13{position:absolute;left:106px;top:147px;}
 .ts161p15{position:absolute;left:106px;top:165px;}
 .ts161p17{position:absolute;left:106px;top:183px;}
 .ts161p20{position:absolute;left:106px;top:201px;}
 .ts161p22{position:absolute;left:106px;top:220px;}
 .ts161p24{position:absolute;left:106px;top:238px;}
 .ts161p26{position:absolute;left:106px;top:256px;}
 .ts161p28{position:absolute;left:106px;top:274px;}
 .ts161p30{position:absolute;left:106px;top:292px;}
 .ts161p35{position:absolute;left:106px;top:310px;}
 .ts161p37{position:absolute;left:106px;top:328px;}
 .ts161p39{position:absolute;left:106px;top:346px;}
 .ts161p41{position:absolute;left:106px;top:365px;}
 .ts161p43{position:absolute;left:106px;top:383px;}
 .ts161p45{position:absolute;left:106px;top:401px;}
 .ts161p47{position:absolute;left:106px;top:419px;}
 .ts161p48{position:absolute;left:106px;top:438px;}
 .ts161p50{position:absolute;left:106px;top:456px;}
 .ts161p52{position:absolute;left:106px;top:474px;}
 .ts161p53{position:absolute;left:106px;top:494px;}
 .ts161p55{position:absolute;left:106px;top:512px;}
 .ts161p57{position:absolute;left:106px;top:530px;}
 .ts161p59{position:absolute;left:106px;top:549px;}
 .ts161p60{position:absolute;left:106px;top:567px;}
 .ts161p62{position:absolute;left:106px;top:585px;}
 .ts161p63{position:absolute;left:106px;top:604px;}
 .ts161p67{position:absolute;left:106px;top:622px;}
 .ts161p68{position:absolute;left:106px;top:641px;}
 .ts161p70{position:absolute;left:106px;top:677px;}
 .ts161p72{position:absolute;left:106px;top:696px;}
 .ts161p73{position:absolute;left:106px;top:714px;}
 .ts161p74{position:absolute;left:106px;top:732px;}
 .ts161p76{position:absolute;left:106px;top:751px;}
 .ts161p78{position:absolute;left:106px;top:769px;}
 .ts161p79{position:absolute;left:106px;top:788px;}
 .ts161p80{position:absolute;left:106px;top:806px;}
 .ts161p81{position:absolute;left:106px;top:824px;}
 .ts161p83{position:absolute;left:106px;top:843px;}
 .ts161p84{position:absolute;left:106px;top:861px;}
 .ts161p85{position:absolute;left:106px;top:880px;}
 .ts161p87{position:absolute;left:106px;top:898px;}
 .ts161p88{position:absolute;left:106px;top:916px;}
 .ts161p90{position:absolute;left:106px;top:935px;}
 .ts161p91{position:absolute;left:106px;top:953px;}
 .ts161p93{position:absolute;left:106px;top:972px;}

 /* Font Styles */
 .ft0p161{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p161{font-weight:normal;}
 .ft2p161{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p161{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p161{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p161{font-style:normal;font-weight:normal;font-size:16px;font-family:"courier new",courier,monospace;color:#000000;}
 .ft6p161{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}
 .ft7p161{font-style:normal;font-weight:bold;font-size:21px;font-family:arial,sans-serif;color:#808080;}

 /* Background Style */
 .styleBackground161{position:absolute;left:97px;top:145px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index160.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;161 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index162.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground161><img src="./background161.png" width="633" height="910" border="0" alt=""></div>
<div class=ts161p0><span class="ft0p161"> </span></div>
<div class=ts161p1><span class="ft0p161">Gravitybox Schedule Primer<span class="ft1p161"> </span></span></div>
<div class=ts161p3><span class="ft0p161">Page 159&nbsp; </span></div>
<div class=ts161p7><span class="ft2p161"> </span></div>
<div class=ts161p8><span class="ft3p161"> </span></div>
<div class=ts161p9><span class="ft4p161">1998&#45;2004 Gravitybox Software LLC<span class="ft3p161"> </span></span></div>
<div class=ts161p13><span class="ft5p161">&nbsp; End If </span></div>
<div class=ts161p15><span class="ft5p161">&nbsp;&nbsp; </span></div>
<div class=ts161p17><span class="ft5p161">&nbsp; If Value.Priority = pcLow Then cboPriority.ListIndex = 0 </span></div>
<div class=ts161p20><span class="ft5p161">&nbsp; If Value.Priority = pcNormal Then cboPriority.ListIndex = 1 </span></div>
<div class=ts161p22><span class="ft5p161">&nbsp; If Value.Priority = pcHigh Then cboPriority.ListIndex = 2 </span></div>
<div class=ts161p24><span class="ft5p161">&nbsp;&nbsp; </span></div>
<div class=ts161p26><span class="ft5p161">&nbsp; VScroll.Value = VScroll.Max </span></div>
<div class=ts161p28><span class="ft5p161">&nbsp; VScroll.Value = VScroll.Min </span></div>
<div class=ts161p30><span class="ft5p161">&nbsp; VScroll.Value = 100 &#45; Value.PercentComplete </span></div>
<div class=ts161p35><span class="ft5p161">&nbsp; txtCategories.Text = Value.Category </span></div>
<div class=ts161p37><span class="ft5p161">&nbsp; chkReminder.Value = IIf(Value.Reminder, vbChecked, _ </span></div>
<div class=ts161p39><span class="ft5p161">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vbUnchecked) </span></div>
<div class=ts161p41><span class="ft5p161">&nbsp; txtNotes.Text = Value.Notes </span></div>
<div class=ts161p43><span class="ft5p161">&nbsp;&nbsp;&nbsp;&nbsp; </span></div>
<div class=ts161p45><span class="ft5p161">End Property </span></div>
<div class=ts161p47><span class="ft6p161"> </span></div>
<div class=ts161p48><span class="ft6p161">This means that to call the form all we need to do from the parent is load the form and </span></div>
<div class=ts161p50><span class="ft6p161">set its Task object </span></div>
<div class=ts161p52><span class="ft6p161"> </span></div>
<div class=ts161p53><span class="ft5p161">Load frmTaskProperties </span></div>
<div class=ts161p55><span class="ft5p161">Set frmTaskProperties.Task = Tasks(oTask.Index) </span></div>
<div class=ts161p57><span class="ft5p161">FrmTaskProperties.Show vbModal </span></div>
<div class=ts161p59><span class="ft6p161"> </span></div>
<div class=ts161p60><span class="ft6p161">Now the form will loaded, it will load all of its own child controls and then it will be shown </span></div>
<div class=ts161p62><span class="ft6p161">as a modal form. We put this code in the &#147;TaskDblClick&#148; event of the TaskList. When </span></div>
<div class=ts161p63><span class="ft6p161">the user double&#45;clicks on a task, this code is executed. </span></div>
<div class=ts161p67><span class="ft6p161"> </span></div>
<div class=ts161p68><span class="ft7p161">Calendar </span></div>
<div class=ts161p70><span class="ft6p161">Now it is time for the crowning jewel of the entire example. This application is used to </span></div>
<div class=ts161p72><span class="ft6p161">show off the schedule, so let start to build something with the schedule on it. The </span></div>
<div class=ts161p73><span class="ft6p161">calendar functionality of the GbOrganize example illustrates how to build a nice, simple </span></div>
<div class=ts161p74><span class="ft6p161">schedule. For this, we will need the same thing the other parts of this application require </span></div>
<div class=ts161p76><span class="ft6p161">a main form and a property box.&nbsp; </span></div>
<div class=ts161p78><span class="ft6p161"> </span></div>
<div class=ts161p79><span class="ft6p161">The main form is an MDI child form with a schedule placed on it. It will be capable of </span></div>
<div class=ts161p80><span class="ft6p161">displaying in four different modes: day, work week, week, and month. In day mode the </span></div>
<div class=ts161p81><span class="ft6p161">schedule will display one day only. There will be one column (the day) and the times will </span></div>
<div class=ts161p83><span class="ft6p161">be displayed on the left. Its MinDate and MaxDate will be the same. In work week </span></div>
<div class=ts161p84><span class="ft6p161">mode, the schedule will display one week Monday to Friday. There will be no </span></div>
<div class=ts161p85><span class="ft6p161">weekends. In week mode, the schedule will display Sunday through Saturday of a </span></div>
<div class=ts161p87><span class="ft6p161">particular week. Finally in month mode there will be an entire month visible at one time. </span></div>
<div class=ts161p88><span class="ft6p161">All displays are controlled by a calendar on the right side of the screen. </span></div>
<div class=ts161p90><span class="ft6p161"> </span></div>
<div class=ts161p91><span class="ft6p161">The MonthView control on the right side of the screen defines the current date. In day </span></div>
<div class=ts161p93><span class="ft6p161">mode this is the date that is displayed. In any other mode this date is belongs to the </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
